import request from '@/utils/request'

// 查询商品附件列表
export function listAtta(query) {
  return request({
    url: '/order/atta/list',
    method: 'get',
    params: query
  })
}

// 查询商品附件详细
export function getAtta(attaId) {
  return request({
    url: '/order/atta/' + attaId,
    method: 'get'
  })
}

// 新增商品附件
export function addAtta(data) {
  return request({
    url: '/order/atta',
    method: 'post',
    data: data
  })
}

// 修改商品附件
export function updateAtta(data) {
  return request({
    url: '/order/atta',
    method: 'put',
    data: data
  })
}

// 删除商品附件
export function delAtta(attaId) {
  return request({
    url: '/order/atta/' + attaId,
    method: 'delete'
  })
}
